﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GameServer.Common.Extensions
{
    public static class RectangleFExtensions
    {
        public static PointF GetCentre(this RectangleF rect)
        {
            return new PointF(rect.Left + Convert.ToSingle(rect.Width / 2.0), rect.Top + Convert.ToSingle(rect.Height / 2.0));
        }
    }
}
